import {Component, OnInit} from '@angular/core';
import {RuleService} from "../http/rule-service";

@Component({
  selector: 'app-rule-component',
  templateUrl: './rule-component.component.html',
  styleUrls: ['./rule-component.component.scss'],
  providers: [RuleService]
})
export class RuleComponentComponent implements OnInit {
  private rules: object[] = [];

  constructor(private ruleService: RuleService) {
  }

  ngOnInit() {
    this.ruleService.list().subscribe(rules => {
      this.rules = rules;
    });
  }

  doDelete(data) {

  }
}
